﻿<ws:ApplicationView x:Class="MultiViewWithLogin.Modules.Core.Views.Main.MainView" x:ClassModifier="internal" x:TypeArguments="local:IMainViewModel"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:ws="clr-namespace:Creventive.Wpf.ShellFactory.Workspace;assembly=Creventive.Wpf.ShellFactory"
                    xmlns:local="clr-namespace:MultiViewWithLogin.Modules.Core.Main"
                    xmlns:wsp="clr-namespace:Creventive.Wpf.ShellFactory.Workspace.Primitives;assembly=Creventive.Wpf.ShellFactory"
                    mc:Ignorable="d"
                    d:DesignHeight="300" d:DesignWidth="300">
	<Grid>
		<!-- This is where the views will be presented -->
		<ws:MultiViewWorkspace x:Name="mainWorkspace" Source="{Binding WidgetViewSources}" AllowClose="False">
			<ws:MultiViewWorkspace.ContainerStyle>
				<Style TargetType="{x:Type wsp:WorkspaceItem}">
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="{x:Type wsp:WorkspaceItem}">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="Auto" />
										<RowDefinition Height="*" />
									</Grid.RowDefinitions>
									<TextBlock Text="{TemplateBinding Title}" />
									<Border Grid.Row="1">
										<wsp:ApplicationViewPresenter />
									</Border>
								</Grid>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</ws:MultiViewWorkspace.ContainerStyle>
		</ws:MultiViewWorkspace>
	</Grid>
</ws:ApplicationView>